package cn.bonoon.controllers.account;

import cn.bonoon.kernel.annotations.Transform;
import cn.bonoon.kernel.annotations.TransformField;
import cn.bonoon.kernel.annotations.Unique;
import cn.bonoon.kernel.annotations.WriteModel;
import cn.bonoon.kernel.util.BoolType;
import cn.bonoon.kernel.web.annotations.form.FormUpdate;
import cn.bonoon.kernel.web.annotations.form.PropertyUpdate;

@Transform
@FormUpdate(2)
public class AccountUpdate extends AccountEditor  { // implements INameEditor

	/**
	 * 
	 */
	private static final long serialVersionUID = -5781700803223470777L;
	@TransformField(writable = WriteModel.NONE)
	@PropertyUpdate(readonly = BoolType.TRUE, value = 0)
	@Unique
	private String loginName;

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
}
